import http from '@/utils/http/axios'
import { BasicResponseModel } from '@/api/model/baseModel'

/**
 * @description: 财务管理-列表
 */
export function fundTypeReports(params: any) {
  return http.request<BasicResponseModel>({
    url: '/api/gdt/account/fundType/reports',
    // url: 'https://yapi.madaomall.com/mock/207/gdt/account/fundType/reports',
    method: 'GET',
    params
  })
}
/**
 * @description: 财务管理-列表-汇总
 */
export function fundTypeReportsTotal(params: any) {
  return http.request<BasicResponseModel>({
    url: '/api/gdt/account/fundType/reports/total',
    // url: 'https://yapi.madaomall.com/mock/207/gdt/account/fundType/reports/total',
    method: 'GET',
    params
  })
}
/**
 * @description: 财务管理-列表-导出
 */
export function fundTypeReportsExport(params: any) {
  return http.request<BasicResponseModel>({
    url: '/api/gdt/account/fundType/reports/download',
    method: 'GET',
    params,
    responseType: 'arraybuffer'
  })
}
